package com.portal.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.portal.entity.TeamMember;
import com.portal.mapper.TeamMemberMapper;
import com.portal.service.TeamMemberService;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 团队成员服务实现类
 */
@Service
public class TeamMemberServiceImpl extends ServiceImpl<TeamMemberMapper, TeamMember> implements TeamMemberService {
    
    @Override
    public List<TeamMember> getTeamMemberList() {
        LambdaQueryWrapper<TeamMember> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(TeamMember::getEnabled, true)
               .orderByAsc(TeamMember::getSort);
        return list(wrapper);
    }
    
} 